package com.pda.common.pages.inscanf;

import com.pda.common.basemvp.present.BasePresenter;
import com.pda.common.bean.BillBean;
import com.pda.common.beanin.ScanfInBean;

public class InScanfPresent extends BasePresenter<InScanfModel, InScanfView> implements InScanfModel.CallBack {
    public BillBean addcode(ScanfInBean scanfInBean) {
       return model.addCode(scanfInBean,this);
    }

    public BillBean deletecode(ScanfInBean scanfInBean) {
        return model.deleteCode(scanfInBean,this);
    }

    public void fb(ScanfInBean scanfInBean) {
        model.fb(scanfInBean,this);
    }

    @Override
    public void onupdate(BillBean abBillBean) {
        view.uiupdate(abBillBean);
    }

    @Override
    public void onshowres(String str) {
        if(view!=null)
        {
            view.showres(str);
        }
    }
}


